package com.xuecheng.content.controller;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.commons.model.vo.WorkCountVo;
import com.xuecheng.content.service.CourseWorkRecService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class CourseWorkRecController {

    @Autowired
    private CourseWorkRecService courseWorkRecService;

    //批阅详情-统计数据
    @GetMapping("/getWorkContentInfoByPubIdAndMediaType")
    public ResponseResult<WorkCountVo> getWorkContentInfo(@RequestParam Long courPubId){
        return courseWorkRecService.getWorkContentInfo(courPubId);
    }


}
